exports.addingCustomerServicedRecords = (req, res) => {

    var bodyParams = req.routeInfo.bodyParams;

    var resultData = {};

    //添加跟进记录
    function AddRecords(cb) {

        var addParam = {
            cs_cid: bodyParams.c_id,
            cs_uid: bodyParams.cs_uid,
            cs_content: bodyParams.cs_content,
            cs_way: bodyParams.cs_way,
            cs_create_time: Date.parse(new Date()) / 1000,
        };

        R.SEND_HTTP(
            req,
            res,
            {
                url: CORE_APIConfig.coreAPI.artCustomerServiceAdd.Request_Api_Url,
                method: 'POST',
                data: addParam
            },
            function (data) {

                resultData.addResult = data.result;
                cb();

            }
        )
    }

    //客户服务状态更新
    function customerServiceStatusUpdate(cb) {

        var updateParam = {
            update_where: 'c_id',
            c_id: bodyParams.c_id,
            c_service_status: 1,
        };

        R.SEND_HTTP(
            req,
            res,
            {
                url: CORE_APIConfig.coreAPI.artCustomerUpdate.Request_Api_Url,
                method: 'POST',
                data: updateParam
            },
            function (data) {

                resultData.updateResult = data.success;
                cb();

            }
        )
    }

    F.Serial([
        AddRecords,
        customerServiceStatusUpdate,
    ], () => {
        RES.successResponse(res, resultData);
    })


}